home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _5C4E2DFC25DC403993E88C0722A9E286 < prev    next >
Encoding:
Text File  |  2004-06-16  |  6.6 KB  |  288 lines

  1. !include("surface.def")
  2.  
  3. shader()
  4. {// >=gffx
  5.     SurfaceID(SRF_GROUND)
  6.     Shaderquality(4)
  7.     Cull("ccw")
  8.     pass()
  9.     {
  10.         vertexshader("TerrainHigh11.vsh")
  11.         Pixelshader("TerrainHigh20.psh")
  12.  
  13.         !include("__TerrainColormapVS3.mtt")
  14.         !include("__TerrainDetail1VS.mtt")
  15.         !include("__TerrainDetail2VS.mtt")
  16.         !include("__TerrainColormapSmallVS3.mtt")
  17.         !include("__CloudsVS.mtt")
  18.         !include("__WaterDeep.mtt")
  19.         !include("__TerrainDetailCrag.mtt")
  20.     }
  21.  
  22.     lightpass()
  23.  
  24.     !include("SpotShadowMapVS.mtt")
  25.     !include("omni_2TMU.mtt")
  26.     !include("SpotTerrainVS.mtt")
  27.  
  28. }
  29.  
  30.  
  31.  
  32. shader()
  33. {// >=gffx
  34.     SurfaceID(SRF_GROUND)
  35.     Shaderquality(3)
  36.     Cull("ccw")
  37.     pass()
  38.     {
  39.         Pixelshader("Terrain14.psh")
  40.  
  41.         !include("__TerrainColormap.mtt")
  42.         !include("__TerrainDetail1.mtt")
  43.         !include("__TerrainDetail2.mtt")
  44.         !include("__TerrainColormapSmall.mtt")
  45.         !include("__Clouds.mtt")
  46.         !include("__WaterDeep.mtt")
  47.     }
  48.  
  49.     lightpass()
  50.  
  51.     !include("SpotShadowmap.mtt")
  52.     !include("omni_2TMU.mtt")
  53.     !include("SpotTerrain.mtt")
  54.  
  55. }
  56.  
  57. shader()
  58. {// >=gf3
  59.     SurfaceID(SRF_GROUND)
  60.     Shaderquality(4)
  61.     Cull("ccw")
  62.     pass()
  63.     {
  64.         vertexshader("TerrainHigh11_1.vsh")
  65.         Pixelshader("Terrain11_1.psh")
  66.         !include("__WaterDeep.mtt")
  67.         !include("__TerrainDetail1VS.mtt")
  68.         !include("__TerrainDetail2VS.mtt")
  69.         !include("__TerrainColormapSmallVS3.mtt")
  70.     }
  71.  
  72.     pass()
  73.     {
  74.         vertexshader("TerrainHigh11_2.vsh")
  75.         Pixelshader("TerrainHigh11_2.psh")
  76.  
  77.         !include("__TerrainColormapVS3.mtt")
  78.         !include("__CloudsVS.mtt")
  79.         !include("__TerrainDetailCrag.mtt")
  80.         DepthFunc("lequal", 0)
  81.         BlendFunc("zero", "inv_src_color")
  82.         BlackFog()
  83.     }
  84.  
  85.     lightpass()
  86.  
  87.     !include("SpotShadowMapVS.mtt")
  88.     !include("omni_2TMU.mtt")
  89.     !include("SpotTerrainVS.mtt")
  90. }
  91.  
  92. shader()
  93. {// >=gf3
  94.     SurfaceID(SRF_GROUND)
  95.     Shaderquality(3)
  96.     Cull("ccw")
  97.     pass()
  98.     {
  99.         Pixelshader("Terrain11_1.psh")
  100.         !include("__WaterDeep.mtt")
  101.         !include("__TerrainDetail1.mtt")
  102.         !include("__TerrainDetail2.mtt")
  103.         !include("__TerrainColormapSmall.mtt")
  104.  
  105.     }
  106.  
  107.     pass()
  108.     {
  109.         Pixelshader("Terrain11_2.psh")
  110.  
  111.         !include("__TerrainColormap.mtt")
  112.         !include("__Clouds.mtt")
  113.         DepthFunc("lequal", 0)
  114.         BlendFunc("zero", "inv_src_color")
  115.         BlackFog()
  116.     }
  117.  
  118.     lightpass()
  119.  
  120.     !include("SpotShadowmap.mtt")
  121.     !include("omni_2TMU.mtt")
  122.     !include("SpotTerrain.mtt")
  123. }
  124.  
  125.  
  126. shader()
  127. {// >=gf3
  128.     SurfaceID(SRF_GROUND)
  129.     Shaderquality(2)
  130.     Cull("ccw")
  131.     pass()
  132.     {
  133.         Pixelshader("TerrainLow.psh")
  134.  
  135.         !include("__TerrainColormap.mtt")
  136.         !include("__TerrainDetail1.mtt")
  137.         !include("__TerrainDetail2.mtt")
  138.         !include("__TerrainColormapSmall.mtt")
  139.     }
  140.  
  141.     lightpass()
  142.  
  143.     !include("SpotShadowmapLow.mtt")
  144.     !include("omni_2TMU.mtt")
  145.     !include("SpotTerrain.mtt")
  146. }
  147.  
  148.  
  149. shader()
  150. {// >=gf3
  151.     SurfaceID(SRF_GROUND)
  152.     Shaderquality(1)
  153.     Cull("ccw")
  154.     pass()
  155.     {
  156.         Pixelshader("TerrainVeryLow.psh")
  157.  
  158.         !include("__TerrainColormap.mtt")
  159.         !include("__TerrainDetail1.mtt")
  160.     }
  161.  
  162.     lightpass()
  163.  
  164.     !include("SpotShadowmapVeryLow.mtt")
  165.     !include("omni_2TMU.mtt")
  166.     !include("SpotTerrain.mtt")
  167. }
  168.  
  169.  
  170. shader()
  171. {//gf2, 4MX
  172.     SurfaceID(SRF_GROUND)
  173.     Cull("ccw")
  174.     Shaderquality(1)
  175.     pass()
  176.     {
  177.         tmu()
  178.         {
  179.             TexGen("planar")
  180.             TexMod("scale", "const", %terrain_inv_x, 0, 0, "const", %terrain_inv_z, 0, 0)
  181.             texture()
  182.             {
  183.                 Image(%colortexture)
  184.                 addressfunc("clamp", "clamp", "clamp")
  185.             }
  186.             ColorOp("mul_add", "texture_a", "inv_tfactor_a", "tfactor_a")
  187.         }
  188.  
  189.         tmu()
  190.         {
  191.             TexGen("world_position")
  192.             TexMtxDirPosScale(1.0, 0.0, 0.0, 0, 0, 0, %waterscale, %waterscale, %waterscale)
  193.             texture()
  194.             {
  195.                 Image("WaterDeep_P.dds")
  196.                 filtering("linear_no_mip")
  197.                 addressfunc("wrap", "clamp", "clamp")
  198.  
  199.             }
  200.             ColorOp("mul", "current", "tfactor", "current")
  201.             AlphaOp("arg1", "texture", "tfactor", "current")
  202.         }
  203.         tfactor(%daycolor_r, %daycolor_g, %daycolor_b, %ambient_a)
  204.  
  205.     }
  206.  
  207.     lightpass()
  208.  
  209.     !include("SpotShadowmapVeryLow.mtt")
  210.     !include("spot_spotmap.mtt")
  211.  
  212.  
  213.     pass()
  214.     {
  215.         tmu()
  216.         {
  217.             TexGen("planar")
  218.             TexMod("scale", "const", 0.00001, 0, 0, "const", 0.00001, 0, 0)
  219.             texture()
  220.             {
  221.                 Image(%colortexture)
  222.                 addressfunc("clamp", "clamp", "clamp")
  223.             }
  224.             ColorOp("arg1", "inv_texture", "current", "current")
  225.         }
  226.  
  227.         DepthFunc("lequal", 0)
  228.         BlendFunc("zero", "inv_src_color")
  229.         BlackFog()
  230.     }
  231.  
  232.     pass()
  233.     {
  234.         tmu()
  235.         {
  236.             TexGen("planar")
  237.             TexMod("scale", "const", %detailsize, 0, 0, "const", %detailsize, 0, 0)
  238.             texture()
  239.             {
  240.                 Image(%detail1texture)
  241.             }
  242.             ColorOp("arg1", "inv_texture", "current", "current")
  243.         }
  244.         DepthFunc("lequal", 0)
  245.         BlendFunc("zero", "inv_src_color")
  246.         BlackFog()
  247.     }
  248.  
  249. }
  250.  
  251. shader()
  252. {//gf2
  253.     SurfaceID(SRF_GROUND)
  254.     Cull("ccw")
  255.     Shaderquality(0)
  256.     pass()
  257.     {
  258.         tmu()
  259.         {
  260.             TexGen("planar")
  261.             TexMod("scale", "const", %terrain_inv_x, 0, 0, "const", %terrain_inv_z, 0, 0)
  262.             texture()
  263.             {
  264.                 Image(%colortexture)
  265.                 addressfunc("clamp", "clamp", "clamp")
  266.             }
  267.             ColorOp("mul", "texture", "tfactor", "current")
  268.             AlphaOp("mul_add", "texture", "inv_tfactor", "tfactor")
  269.         }
  270.         tmu()
  271.         {
  272.             TexGen("planar")
  273.             TexMod("scale", "const", %detailsize, 0, 0, "const", %detailsize, 0, 0)
  274.             texture()
  275.             {
  276.                 Image(%detail1texture)
  277.             }
  278.             ColorOp("mul", "texture", "current", "current")
  279.             AlphaOp("arg2", "texture", "current", "current")
  280.         }
  281.         BlendFunc("src_alpha", "zero")
  282.         tfactor(%daycolor_r, %daycolor_g, %daycolor_b, %ambient_a)
  283.     }
  284.     lightpass()
  285.     !include("SpotShadowmapVeryLow.mtt")
  286.     !include("spot_spotmap.mtt")
  287. }
  288.